include ../config.mk

dist_srcdir = Tools
dist_FILES = \
	HOCWrap.hs \
	Makefile.in \
	$(NULL)

all: hocwrap

hocwrap: *.hs
	mkdir -p build/hocwrap
	$(GHC) --make HOCWrap.hs	\
		-fglasgow-exts	\
		-o hocwrap	\
		-odir build/hocwrap -hidir build/hocwrap	\
		-package-conf ../HOC/HOC-$(PLATFORM).conf-inplace	\
		-package-conf ../Foundation/Foundation.conf-inplace

clean:
	rm -rf hocwrap build

install: all
	install -s hocwrap $(bindir)
